﻿using System;
using System.Windows.Forms;
using xu.MinFileLogger.FW;

namespace xu.MinFileLogger.FW400
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            Logger.Init("D:\\wwwroot\\minlog");

            //$"线程编号:{System.Environment.CurrentManagedThreadId}".LogInfo();
            "测试内容0".LogFatal();
            "测试内容Program1".LogFatal<Form1>();
            Logger.LogFatal<Form1>("测试内容Program2");

            for (int i = 0; i < 100000; i++)
            {
                $"编号 -- {i}".LogInfo();
            }
        }
    }
}
